package com.atguigu.daijia.customer.client;

import com.atguigu.daijia.common.result.Result;
import com.atguigu.daijia.model.form.customer.UpdateWxPhoneForm;
import com.atguigu.daijia.model.vo.customer.CustomerLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "service-customer")
public interface CustomerInfoFeignClient {
    /*
     * @param code 
     * @==============History===============<br/>;
     * @Description //   微信小程序登录
     * @Date 2024/7/31
     * @Author < a href="15991488967@163.com">chen</ a>;
     * @return com.atguigu.daijia.common.result.Result<java.lang.Long>
     */
    @GetMapping("/customer/info/login/{code}")
    Result<Long> login(@PathVariable String code);


    /*
     * @param customerId
     * @==============History===============<br/>;
     * @Description //   获取用户的登录信息
     * @Date 2024/8/1
     * @Author < a href="15991488967@163.com">chen</ a>;
     */
    @GetMapping("/customer/info/getCustomerLoginInfo/{customerId}")
    Result<CustomerLoginVo> getCustomerLoginInfo(@PathVariable Long customerId);

    /*
     * @param updateWxPhoneForm
     * @==============History===============<br/>;
     * @Description //   更新用户的手机号
     * @Date 2024/8/1
     * @Author < a href="15991488967@163.com">chen</ a>;
     */
    @PostMapping("/customer/info/updateWxPhoneNumber")
    Result<Boolean> updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm);

}